﻿using System.Collections.Generic;

namespace TestUp.Models.TestWorkers.TestsModel
{
    public class RadioTest : TestQuestion
    {
        public string QuestionText { get; set; }
        public Dictionary<int, string> Statements { get; set; }
        public int Answer { get; set; }

        public RadioTest()
        {
            TestType = TestTypes.RadioTest;
            Statements = new Dictionary<int, string>();
        }

        public bool Check(int answerId)
        {
            return Answer == answerId;
        }
    }
}